let flag = true;
export const eruda = function (config = {}) {
  if (!flag) return;
  flag = false;
  config = config || {};
  const script = document.createElement("script");
  script.src = "//cdn.jsdelivr.net/npm/eruda";
  document.body.appendChild(script);
  script.onload = function () {
    window.eruda.init(config);
  };
};
